package ruifight.member.dao;

import ruifight.member.dao.base.BaseMapper;
import ruifight.member.model.AccountRecord;
import ruifight.member.model.AccountRecordExample;

import java.util.List;
import java.util.Map;

public interface AccountRecordMapper extends BaseMapper<AccountRecord, AccountRecordExample, Long>{
    /**
     * 获取交易记录
     * @param paramMap
     * @return
     */
    public List<Map<String, Object>> getAccountRecordList(Map<String, Object> paramMap);

    /**
     * 获取7天交易量
     * @return
     */
    public List<Map<String, Object>> getTradingVolume();
    /**
     * 获取7天交易额
     * @return
     */
    public List<Map<String, Object>> getAturnover();

    /**
     * 获取会员累计折扣金额
     * @param paramMap
     * @return
     */
    public Float getCumulativeDiscount(Map<String, Object> paramMap);
    /**
     * 获取店铺累计消费金额
     * @param paramMap
     * @return
     */
    public Float getCumulativeMoney(Map<String, Object> paramMap);
}
